home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / qbbs / msgxit10.zip / MSGEXIT.DOC next >
Text File  |  1989-04-01  |  1KB  |  36 lines

  1. MsgExit v1.00, by Bill Fenner, 1:129/87
  2.  
  3. MsgExit opens MSGINFO.BBS and reads your high message number.  If you have
  4. over 30,000 messages (or more than the command-line parameter specifies)
  5. it exits with errorlevel 1, otherwise it exits with errorlevel 0.  You
  6. might want to use something like
  7.  
  8. msgexit
  9. if errorlevel 1 then msgpack -a -b -r
  10.  
  11. to renumber your message file when the numbers get too high.  Or, with a
  12. more complex example, using SizeExit (another program I wrote) to run
  13. msgpack only once based on size or need to renumber.
  14.  
  15. set r=
  16. msgexit
  17. if errorlevel 1 then set r=-r
  18. sizeexit
  19. if errorlevel 8 then goto maint
  20. if #%r%==# then goto exit
  21. goto pack
  22.  
  23. :maint
  24.   msgutils ...
  25.     .
  26.     .
  27.     .
  28. :pack
  29.   msgpack -a -b %r%
  30.  
  31. the %r% is null when you don't need to repack, and is -r when you do.
  32. (note: I just came up with this batch file segment, it hasn't been tested.)
  33.  
  34. This program is public domain.  Do what you will, just don't call it your
  35. own.  Get more info by running msgexit with two or more garbage parameters.
  36.